package com.fengxiaoxiaoxi.fengutils.utils.aliyun.properties;

import java.util.Objects;

public class AliyunProperties {
    private String endpoint;
    private String accessKeyId;
    private String accesskeySecret;
    private String bucketName;
    private String bucketDomain;

    public AliyunProperties(){}

    public AliyunProperties(String endpoint, String accessKeyId, String accesskeySecret, String bucketName, String bucketDomain) {
        this.endpoint = endpoint;
        this.accessKeyId = accessKeyId;
        this.accesskeySecret = accesskeySecret;
        this.bucketName = bucketName;
        this.bucketDomain = bucketDomain;
    }



    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        AliyunProperties that = (AliyunProperties) o;
        return Objects.equals(endpoint, that.endpoint) &&
                Objects.equals(accessKeyId, that.accessKeyId) &&
                Objects.equals(accesskeySecret, that.accesskeySecret) &&
                Objects.equals(bucketName, that.bucketName) &&
                Objects.equals(bucketDomain, that.bucketDomain);
    }

    @Override
    public int hashCode() {
        return Objects.hash(endpoint, accessKeyId, accesskeySecret, bucketName, bucketDomain);
    }

    @Override
    public String toString() {
        return "AliyunProperties{" +
                "endpoint='" + endpoint + '\'' +
                ", accessKeyId='" + accessKeyId + '\'' +
                ", accesskeySecret='" + accesskeySecret + '\'' +
                ", bucketName='" + bucketName + '\'' +
                ", bucketDomain='" + bucketDomain + '\'' +
                '}';
    }

    public String getEndpoint() {
        return endpoint;
    }

    public void setEndpoint(String endpoint) {
        this.endpoint = endpoint;
    }

    public String getAccessKeyId() {
        return accessKeyId;
    }

    public void setAccessKeyId(String accessKeyId) {
        this.accessKeyId = accessKeyId;
    }

    public String getAccesskeySecret() {
        return accesskeySecret;
    }

    public void setAccesskeySecret(String accesskeySecret) {
        this.accesskeySecret = accesskeySecret;
    }

    public String getBucketName() {
        return bucketName;
    }

    public void setBucketName(String bucketName) {
        this.bucketName = bucketName;
    }

    public String getBucketDomain() {
        return bucketDomain;
    }

    public void setBucketDomain(String bucketDomain) {
        this.bucketDomain = bucketDomain;
    }
}
